/*
 *  libKara - Library for basic instant messaging functions
 *  Copyright (C) 2007-2008 Markus Karnik
 *
 *  This program is free software; you can redistribute it and/or modify it 
 *  under the terms of the GNU General Public License as published by the
 *  Free Software Foundation; either version 3 of the License, 
 *  or (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful, but
 *  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 *  or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 
 *  for more details.
 *
 *  You should have received a copy of the GNU General Public License along 
 *  with this program; if not, see <http://www.gnu.org/licenses/>.
 *  
 */

package de.karnik.libkara.roster;


/**
 * Listener interface to handle contact callbacks.
 * 
 * @author Markus Karnik - markus.karnik@my-design.org
 * @version 1.0
 * @since 1.0
 */
public interface ImContactListener {

	/**
	 * Invoked when a new message arrived.
	 */
	public void messageArrived();
	/**
	 * Invoked when an incomfing message arrived.
	 * 
	 * @param contact The sending contact.
	 * @param message The received message.
	 */
	public void incomingMessageArrived( ImContact contact, ImMessage message );
	/**
	 * Invoked when an outgoing message arrived.
	 * 
	 * @param contact The receiving contact.
	 * @param message The send message.
	 */
	public void outgoingMessageArrived( ImContact contact, ImMessage message );
	
	/**
	 * Invoked when the authentication process was started.
	 */
	public void authProcessStarted();
	/**
	 * Invoked when the authentication process was finished.
	 */
	public void authProcessFinished();
	
}
